<?php
/**
 * Created by PhpStorm.
 * User: Chris
 * Date: 14-5-2
 * Time: 上午8:55
 */


return array(

    /**
     * ----------------------------------------------------------------------
     * global settings
     * ----------------------------------------------------------------------
     */

    // default storage driver
//    'driver'      => 'memcached',
    'driver'      => 'redis',

    // default expiration (null = no expiration)
    'expiration'  => null,

    /**
     * Default content handlers: convert values to strings to be stored
     * You can set them per primitive type or object class like this:
     *   - 'string_handler' 		=> 'string'
     *   - 'array_handler'			=> 'json'
     *   - 'Some_Object_handler'	=> 'serialize'
     */

    /**
     * ----------------------------------------------------------------------
     * storage driver settings
     * ----------------------------------------------------------------------
     */
    // specific configuration settings for the memcached driver
    'memcached'  => array(
        'cache_id'  => 'fuel',  // unique id to distinquish fuel cache items from others stored on the same server(s)
        'servers'   => array(   // array of servers and portnumbers that run the memcached service
            'default' => array('host' => 'xxxxx', 'port' => 11211, 'weight' => 100)
        ),
        'username'=>'xxxxx',
        'password'=>'xxxx'
    ),
    'redis'  => array(
        'database'  => 'default',  // unique id to distinquish fuel cache items from others stored on the same server(s)

    ),

);
